package com.umeox.watch.moto.dataservice.db.model;


import androidx.room.Entity;
import androidx.room.Ignore;
import androidx.room.PrimaryKey;

@Entity(tableName = ForbidPeriod.TABLE_NAME)
public class ForbidPeriod {
    @Ignore
    public static final String TABLE_NAME = "forbid_period";

    @PrimaryKey
    private long id;

    private String name;

    private String deviceId;

    private String timePeriod;

    private String repeatExpression;

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public long getId() {
        return id;
    }

    public void setId(long id) {
        this.id = id;
    }

    public String getDeviceId() {
        return deviceId;
    }

    public void setDeviceId(String deviceId) {
        this.deviceId = deviceId;
    }

    public String getTimePeriod() {
        return timePeriod;
    }

    public void setTimePeriod(String timePeriod) {
        this.timePeriod = timePeriod;
    }

    public String getRepeatExpression() {
        return repeatExpression;
    }

    public void setRepeatExpression(String repeatExpression) {
        this.repeatExpression = repeatExpression;
    }

    @Override
    public String toString() {
        return "ForbidPeriod{" +
                "id=" + id +
                ", deviceId='" + deviceId + '\'' +
                ", timePeriod='" + timePeriod + '\'' +
                ", repeatExpression='" + repeatExpression + '\'' +
                '}';
    }
}
